/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-13 19:12:54
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-13 19:40:03
 */
public class Person1{
    //定义名字
    private String name;
    public Person1(String name){
        this.name = name;
    }
    //get
    public String getName(){
        return name;
    }
    public void drive(Vehicle vehicle,String destination){
        System.out.println(name+"开"+vehicle.getType()+"去"+destination);
    }
}
